<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>约数计算器</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">约数计算器</a>
          </div>
      
          
        </div><!-- /.container-fluid -->
    </nav>
      <h2>结果页面(本次耗时 <%= during%> ms)</h2>
      <p>数字<%= number%>的约数如下：</p>
      <ul>
          <% for(var i =0;i < resultArr.length;i++){ %>
              <li><%=resultArr[i]%></li>
          <% } %>
      </ul>
      
      <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
      <script type="text/javascript">
        $("#btn").click(function(){
            var number = $("#number").val();
            window.location = "/" + number;
        })
      </script>
</body>
</html>